<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- React 底层核心库 -->
    <script src="https://cdn.bootcdn.net/ajax/libs/react/18.2.0/umd/react.development.js"></script>
    <!-- React 操作 Dom 库，类似 JQuery -->
    <script src="https://cdn.bootcdn.net/ajax/libs/react-dom/18.2.0/umd/react-dom.development.min.js"></script>
    <title>Document</title>
</head>

<body>
    <script>
        console.log('React', React);
        const root = document.createElement('div');
        root.id = 'root';
        document.body.append(root);
        const li = React.createElement('li', {}, 'hello react');
        const li1 = React.createElement('li', { className: 'li1' }, 'hello react1');
        const ul = React.createElement('ul', {}, li, li1);
        ReactDOM.createRoot(root).render(ul);
    </script>
</body>

</html>